    /********************************************************/
    /*                                                      */
    /*                                                      */
    /*         Copyright (C), 1993  SEIKO EPSON Corp.       */
    /*         ALL RIGHTS RESERVED                          */
    /*                                                      */
    /*                                                      */
    /*  file name : fseek.c                                 */
    /*                                                      */
    /*  Revision history                                    */
    /*      93/12/17    first release       S.Akaiwa        */
    /*      97/3/17	modified	    T.Katahira	    */
    /*			change function declaration	    */
    /*					to the ANSI style   */
    /*                                                      */
    /********************************************************/

#ifdef      UNIX
#include    "stdio.h"
#include    "errno.h"
#include    "smcvals.h"
#else
#include    <stdio.h>
#include    <errno.h>
#include    <smcvals.h>
#include	<_mj_os.h>
#endif

int
fseek(FILE * fiStrmP, long lOfst, int iOrg)

    /********************************************************/
    /*                                                      */
    /*  This is dummy function.                             */
    /*  The fseek function always returns EOF.              */
    /*  If stdin, stdout or stderr is specified by fiStrmP, */
    /*  "Illegal seek" is set to the errno.                 */
    /*                                                      */
    /*      RETURN  EOF ... Error                           */
    /*                                                      */
    /*  <ANSI>                                              */
    /*                                                      */
    /*      The fseek function moves the file position.     */
    /*                                                      */
    /*      RETURN  0   ... Success                         */
    /*              EOF ... Error                           */
    /*                                                      */
    /********************************************************/

    /* FILE    *fiStrmP;           pointer to target stream */
    /* long    lOfst   ;        number of bytes from origin */
    /* int     iOrg    ;                    origin position */
{
	int p = 0;

     if(_ISSTDIO(fiStrmP)){                 /* stream stdio */
        errno = ESPIPE;                 /* set error number */
		return (int)EOF;
     }

	FileSeek(fiStrmP->_fd, (INT32)lOfst, (INT16)iOrg);
	if (p<0) {
		errno=ESPIPE;
	}
	return p;
}

